<?php
class Application_Plugin_SelectLayout extends Zend_Controller_Plugin_Abstract
{
	public function preDispatch(Zend_Controller_Request_Abstract $request)
	{
		$module_name = $request->getModuleName();
		$layout = Zend_Layout::getMvcInstance();
		if ($module_name == 'admin') $layout->setLayout('admin/layout');
	}

}